fix for the railtie in rails 4