tag duplicates fix