Finally fixed problem wher trie was not locating values correctly.