merge the data when renaming a tag to an existing one