Fix an issue with the trie not being nested properly