fix code in barcode scanner