fix some bugs about service delete