fix script/rails