diff --git a/modules/base/pymod/table.py b/modules/base/pymod/table.py
index d2c1e7b0038c09135e64306d5c1d9c6d5207afcd..7d0b53268389309052855cbad37aec65d23a5715 100644
--- a/modules/base/pymod/table.py
+++ b/modules/base/pymod/table.py
@@ -641,7 +641,7 @@ class Table(object):
         for row, d in zip(self.rows, data):
           row.append(d)
 
-    elif data!=None and len(self.cols)==0:
+    elif data!=None and len(self.col_names)==0:
       if IsScalar(data):
         self.AddRow({col_name : data})
       else: