Fixed error in ScanImageOverScale.