Fix for getting Trie from rootNode

Quick fix - works for single node (see test)
If there are still problems, let me know.