fix the difference between dict and OrderedDict