minor fix in quaternion code