check tags before renaming them