Removing duplicate tags