Hi, sorry about the bug, unfortunately we only realised it was an issue when the webgl version got published. I think the way the bugg can be avoided is when your browser is open, to not switch to any applications until you are done playing the game. Sorry it is a very annoying bug but we are really not sure why it's happening.
Thank you so so much for playing!!