Fix npe while resume game.