Fixing uwsgi bugs