Fix railtie loading