fixed logic in qr scanner, replaced break with continue where necessary.