Fixes environment for production_by