Fixed bug where barcodes that are substrings of others were badly handled