fix lexicon for dataset

fixes #5457