Railrevolve probelm

I am wondoring why profile points to the wrong direction at the end of the railcurve.
Any idea?

railrevolve.gh (16.2 KB)
railrevolve.3dm (47.0 KB)

I don’t know why you would want to use the rail revolution, but would not it be better to use “sweep1 rail” in this case?

Thanks, that is what I want. I dont really know what is the main difference regarding the target generation…