Index: /trunk/FACT++/src/FitsFile.cc
===================================================================
--- /trunk/FACT++/src/FitsFile.cc	(revision 11743)
+++ /trunk/FACT++/src/FitsFile.cc	(revision 11744)
@@ -132,9 +132,12 @@
     fIsOwner = true;
 
+    return true;
+}
+
+void FitsFile::ResetColumns()
+{
     fColNames.clear();
     fColTypes.clear();
     fColUnits.clear();
-
-    return true;
 }
 
@@ -152,8 +155,4 @@
     fFile = file;
     fIsOwner = false;
-
-    fColNames.clear();
-    fColTypes.clear();
-    fColUnits.clear();
 
     return true;
@@ -193,4 +192,5 @@
     // Set this as last - we use it for IsOpen()
     fTable = table;
+    fNumRows = 0;
 
     return true;
Index: /trunk/FACT++/src/FitsFile.h
===================================================================
--- /trunk/FACT++/src/FitsFile.h	(revision 11743)
+++ /trunk/FACT++/src/FitsFile.h	(revision 11744)
@@ -44,4 +44,6 @@
         AddColumn(type, name, 1, unit);
     }
+
+    void ResetColumns();
 
     bool OpenFile(const string &filename, bool allow_open=false);
