fix dfonset_sorted undef bug