I ever feel this bug,the reason happening because your internet connection or you go to another website and battle just been started when you get to another website,when you get back to SM Site,That's happened at you...
Really?? How do you know?
If that is the case, It must be cuz I'm always going on youtube, facebook, ebay, etc. xD
I'll try to use a different window and see what happens.