fixes for 0 length barcodes