finally fix QRCode Scan bug