Fix a memory access bug in the trie construction. When we attempt to