Fixed case-insensitive comparison problem when adding existing tags