the cross section has to be in the center. If this not the case, you can always transform the cross section to the center. In your case, just substract the first point.
Thanks @Aizatulin For help It's work fine for corner angle,This code wrangle I try for other like spirale curve for stair,Pls someone help me how can fix that.
You can redefine the orientation on the back bone for example. First you can apply orientation along the curve, to get the tangent and up vector. But the up vector should be (0,1,0). In this case the tangent has the be recalculated using the double cross product with the new up vector and the old tangent.
@edit: or even easier -> avoiding the cross product -> swap up and N in the orientation node and set the new normal to (0,1,0).