fixed canceled scan error