Fixed rotateCube.