Fix an inversion between two angles