Fix CalcCurvesIntersection method.