fix rails