Fix scan.cc