barcodedecode() did not always return barcode