Fixed bugs when switching camera angles