fix rails dependency