fixed game crashing when transitioning to game screen