random quaternion fix