on Scan crash fix.
fixed scan mode