fix rails3