fixed stuck qr scanner bug