fixed rails_env issue