fixing bug in Trie node optimisation - permanent fix for changes made in aeefbfc3033f3ee96af32eae417eef7cf5867ea5