fix auto detect operation by barcode