Fixed the camera crashing bug