fixed a bug with the camera control