3d spline out of track

I am wondering why this swepped cord which is based on a 3d spline goes out of track in the top horizontal part. In the screen shot the spline is in red. How can I influence this behaviour?

Thanks,

Jan

SolidworksParts And Features