deal with random tags in datasets