1 Initial situation
The railtrack "fell down" and is odd looking.
2 Solution
Change some values as described below:
Right click on the Railtrack, then go to Properties and Height. Set the values on the same values as the terrain. Also the gradient values should be adjusted to meaningful values, e.g. a horizontal Railtrack has both values as 0.