Sweep not working as expected

Sweep is not working as expected , It is going weird around the corners…Somebody help, Thanks in advance!

sweep.3dm (81.0 KB)

Because your section profile is too big to sweep on your too narrow zigzag corners. Check the attached and you’ll know what I mean.

Sweep1 Error_re.gh (5.9 KB)