fix bug where a map keys array was swapped with the map name trie