fix scanner.