Fixed a bug concerning the X rotation.