Fixed mixed up key and value on trie access