Fix ns_prefixes dict merge bug