fix closestAngle