Fixed game state switch glitch.