added a safe function that keeps the camera rendering the scene that has been there before the game object the camera belongs to got it's position set to NaN