fixed bug with leaving-game-mode fix