Index: /trunk/Ohana/src/addstar/src/ReadStarsSDSS.c
===================================================================
--- /trunk/Ohana/src/addstar/src/ReadStarsSDSS.c	(revision 28838)
+++ /trunk/Ohana/src/addstar/src/ReadStarsSDSS.c	(revision 28839)
@@ -182,4 +182,5 @@
       stars[N].measure.az        = az;
       stars[N].measure.photcode  = photcode[j];
+      stars[N].measure.imageID   = j + *nimages; // set imageID to entry for this filter
     }
   }    
@@ -254,4 +255,5 @@
     images[N].externID = 0;
     images[N].sourceID = 0;
+    images[N].parentID = UINT32_MAX; // UpdateImageIDs sets parentID = 0
 
     // save the filename
