fixing error that should let app run on gunicorn

- not tested