fixed a camera movement bug