fix rescale