fixed environment.rb