Fixed some quaternion functions..