Tried to fix the infinte loop that occurs when two services names are in an ID