Fix bug in env.rb