Downsampling fixes.