fix SortedDict OrderedDict on dj1.7