fix barcode bug