fix(scanner) fix scanner cancel