fixes gamestate