fix rails a bit