Fixed bug at railtie