Fixed QR code crash