Fixed a bug in barcode scan entry.