bug fix of downscaling option