prevent crash on gameover