Fix QR scanning with multiple outputs