upsampling fix