fix barcode assign