production.rb remodified to resolve 'was' error