Fix issue when not barcode was scanned