Fixes for the quaternion to euler conversion