fix bug in stop service