try snapping an end vert to the curve and drag it to the end of the rail, or snap them somehow, Im on the run, late for uni, I hope someone else can expand on what I am saying