Fixes for QR code scanning.