Hey, sorry for taking so long to respond, I've been busy in non-DA related things lately.
Most probably your problem is corrected if you invert the order of the splines inside the sweep (1st spline should be second and viceversa). If that doesn't work, your rectangle is pointing in the wrong direction.