fixed end game error