Problem with twisted strips - Shift List - Wrap

Hi, I am new to Grasshopper. I am following a youtube tutorial for this script. I’ve followed every step exactly how the video shows, but when I loft the lines together the last one wraps to the first. When I turn all Wraps to false, the result looks okay but the loft gives me an error. What is going on? How can I solve it?
I’m attatching the script and photos.

twisted (8.1 KB)

Not sure but maybe all you need is to invert (set to ‘False’ instead of the default True) the ‘Wrap’ input to Shift List?