bugfix in production.rb