fixed initialization of trie