Fix issue with barcode scanner not working