qrcode scan fixes