downsample fix