Index: branches/eam_branches/ipp-20110505/Ohana/src/relphot/src/MosaicOps.c
===================================================================
--- branches/eam_branches/ipp-20110505/Ohana/src/relphot/src/MosaicOps.c	(revision 31524)
+++ branches/eam_branches/ipp-20110505/Ohana/src/relphot/src/MosaicOps.c	(revision 31525)
@@ -620,7 +620,7 @@
     float dM = 0.0;
     for (j = 0; j < NSlist[i]; j++) {
-      Nstars = Slist[i][j];
-      if (starNcount[Nstars][Ns] > 1) {
-	dM += (starOffset[Nstars][Ns] / starNcount[Nstars][Ns]);
+      k = Slist[i][j];
+      if (starNcount[k][Ns] > 1) {
+	dM += (starOffset[k][Ns] / starNcount[k][Ns]);
       }
     }
