fixing rail position

#394