fix "Clearall before scan" handling