Y-K repair for max->min