Fix and paranoia for trie.