Fixed a compile error in rotate