fix tag deletion