Fixed uWSGI restart bug