fix qr scanning