fixed missing minmax() in rescale()