fixed type in upscale.