Fix bug for gunicorn.