Fixed restart service issue in debug