Fix railtie and backwards compatability.