Fixed typo in Rotate function