fix scanner.scanRaw() bug