fix quaternion transformation