fix unsortable dict