fix ordered dictioary