Fix duplicate tags.