fixed the flipping camera problem