set proper comparator after recovery.