fix rails_env