Fix purgeOldScanResults