fix scan.