fixed a small error with barcode controller