Index: trunk/Ohana/src/relphot/src/gcatalog.c
===================================================================
--- trunk/Ohana/src/relphot/src/gcatalog.c	(revision 5242)
+++ trunk/Ohana/src/relphot/src/gcatalog.c	(revision 5320)
@@ -6,12 +6,12 @@
 
   if (FINAL) {
-    mode = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
+    catalog[0].catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
   } else {
-    mode = LOAD_AVES | LOAD_MEAS | LOAD_SECF;
+    catalog[0].catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF;
   }    
 
   /* CATMODE and CATFORMAT determined from catalog */
 
-  if (!load_catalog (catalog, mode, VERBOSE)) {
+  if (!load_catalog (catalog, VERBOSE)) {
     fprintf (stderr, "ERROR: failure loading catalog %s\n", catalog[0].filename);
     exit (1);
