fix for nginx restart