Ugly workaround for the mutableTreeMap bug.