Fixed uwsgi issues