Fixed a bunch of quaternion problems.