Scan command fix

Scan command fixed.