fix production.rb generation bug