fix restart_scanning usage