Sweep Along Nurbscurve

Hi All.
I have an issue on the plane coordinate system on nurbs curve. It appears there are two different
coordinate system on one curve. As a result the sweep output is not as expected. I have tried loft
but result in error. Any help on this is greatly appreciated.

Try sweeping with two rails and the profile curve.