fix an issue when app crashed on game-over