fix quaternion