I agree with Dave. If you put the line and curve on the xy plane and aligned with the x axis, it works everytime.