Fix gameover bug