Fixed camera loop bug