fix rails 4 heroku issue