Help me ! sweep 2 issue

I’m new to rhino can somebody help me understand what is the issue that sweep 2 is generating this type of distorted geometry. I’m trying to make a slide that take shape from rectangular to semicircular shape.
Thank You in advance.

Hi, welcome! It’s always a good idea to post a 3dm file that illustrates the problem you’re having. That helps to pinpoint what is going wrong and how to fix it.

You might also want to decide how much distance the rectangle stays a rectangle through the sweep.—-Mark