Fix bug stop scan