Hi,
To work correctly, the RailClone object should be entirely enclosed by the boundaries of the surface. If the RailClone object overlaps a boundary, unwanted deformation might occur. Making the surface slightly larger (for example by using the Edit Polygons > Outline & Inset tools) is good practice to avoid any unwanted deformations.
I hope that helps.
Best regards,