Fixed some bugs in RotateCamera