Fixed a bug causing a crash on the game over screen