fix repeat scan bug