Fix bugs in qrcode.