bug fixing startScan