Omg that's really odd.
Did you finish the Kyoko's side quest from the very begging? Maybe, that apple you get as a reward is the culprit?
So sorry for the late response, ive been really busy. I think its the apple from tbe beginning. Maybe I picked an apple before I completed that quest and the code messed up?