fixed a camera snapping issue