fixed nginx restart issue