fix: adding tag w/ name already exists ends in infinite loop (+tests). Thx @miso-belica