fix upscale condition