Index: trunk/Ohana/src/addstar/src/find_matches_closest.c
===================================================================
--- trunk/Ohana/src/addstar/src/find_matches_closest.c	(revision 17193)
+++ trunk/Ohana/src/addstar/src/find_matches_closest.c	(revision 17194)
@@ -93,5 +93,7 @@
 
   /* set up pointers for linked list of measure, missing */
-  if (catalog[0].sorted) {
+  if (catalog[0].sorted && (catalog[0].Nmeasure == catalog[0].Nmeas_disk)) {
+    // this version is only valid if we have done a full catalog load, and if the catalog
+    // is sorted while processed
     next_meas = init_measure_links (catalog[0].average, Nave, catalog[0].measure, Nmeas);
   } else {
