fix rails dependencies