Waffle structure not aligned

You didn’t internalise your referenced rail curve in your curve param.
Please read this first especially No. 3.