fixed lexicon loading function.