Fixed special case for quaternion rotation