Some fixes in production.rb