Well, don't do that. See, what most likely happened is you got this: P,E,P,K,P,K,E,P
There is one moving NPC there, so if you take your time to enter the menu/pokegear, he could've advanced the frame by one or two. Next time just keep conscious of that - if you checked Elm call verification and it said you hit your delay you most likely did :)