fixes in bin
diff --git a/erpnext/stock/doctype/bin/bin.py b/erpnext/stock/doctype/bin/bin.py
index 24c47fc..1c2b53e 100644
--- a/erpnext/stock/doctype/bin/bin.py
+++ b/erpnext/stock/doctype/bin/bin.py
@@ -270,7 +270,7 @@
 		
 		# if no prev sle, start from the first one (for repost)
 		if not prev_sle:
-			cqty, cval, val_rate, self.fcfs_bal = 0, 0, 0, []
+			cqty, cval, val_rate, stock_val, self.fcfs_bal = 0, 0, 0, 0, []
 		
 		# normal
 		else: