minor bug fix in decodeByBarcode