fix to quaterion_from_rotation