Bugfix: point names got lost

I think we need to carry over the point name from segment.onCurve instead of segments[-1].onCurve