Fix crash in downsample 8 bit