fix BarcodeScanner