bug in rescale