fix rails c production
fix bugs