repair the scan