Fix the movement of the origin points in the slope sort