Index: trunk/Mars/mbase/fits.h
===================================================================
--- trunk/Mars/mbase/fits.h	(revision 11570)
+++ trunk/Mars/mbase/fits.h	(revision 11711)
@@ -363,9 +363,15 @@
             string str(c);
 
-            //if (!str.empty())
-            //    cout << setw(2) << i << "|" << str << "|" << endl;
+//            if (!str.empty())
+//                cout << setw(2) << i << "|" << str << "|" << (endtag?'-':'+') << endl;
 
             if (str=="END                                                                             ")
+            {
                 endtag = true;
+
+                // Make sure that no empty vector is returned
+                if (vec.size()%36==0)
+                    vec.push_back(string("END     = '' / "));
+            }
 
             if (endtag)
@@ -407,5 +413,5 @@
         }
 
-        seekpos(0);
+        seekg(0);
 
         while (good())
