Fixed gamemode change glitch.