Fixed downscaling bug