fix bug: on scanning qr code