prevent zeros size when downsampling