Rescale now returns 0.5 if min equals max