Fixed bug in rotate origin classes