Spline Relative Transform Problems

Dear people on the forum,

I’ve been working on a spline blueprint with which I can create a traintrack in 4.9 after watching some tutorials.
Yet for some reason I can’t get the location and rotation to work correctly. All the planks work fine, but the iron track won’t fit to the spline.

Here is the blueprint:

And from the viewport:
The first one is when plugged into the total spline lenght and the second when plugged into the index*spacing (which works fine for all the other codes)

I hope someone here knows how to fix this :smiley: