Fixed the gamemode error