fixed barcode scanning