Fix calculation of min/(1-min)