QR code bug fix