Fix purgeOldScanResults
Close #40