fix use of too new version of OrderedDict