fixed sn or barcode loop in view