fixed bug with largestscale, upsample