fixes to `rescale`