Fix lastScanTime call