fix "gamestate" error