fix error with gunicorn