fix for json TreeMap -> BTreeMap