Tag merging