fix bug where service might be missed if it has similar name as another