fix production.py