Fix bug in lexicon load procedure