Downsampling fix