Grasshopper Sweep1 Multiple Curve Problems

I would use start point instead of end point for the rectangle section.
Why graft the Rectangle output?
Does the Ln (Line) component have the same number of points on both of its inputs?

These questions and more would be readily answered if you posted your file, as recommended:

3. Attach minimal versions of all the relevant files