fix environment to Rails.env