Incomplete Sweep along a Polycurve

Hello!

I’m trying to create a surface with a sweep but the result is incomplete. I made some tests and the issue seems to be the path, which has been created with lines and arcs. These elements share start and end points so there should not be interruptions, nevertheless for some reason they don’t join properly, the proof: using the node PolyCurve.ByJoinedCurves everything is fine until the tolerance is set to 0.0001.

I found a way to join the curves properly and make it work but that means many extra steps that I feel should not be required. Is there a simple way to clean a “corrupted” polycurve? or maybe a better workflow to create that polycurve?

Sweep.dyn (44.8 KB)

Thank you