Index: branches/eam_branches/relastro.20100326/src/UpdateChips.c
===================================================================
--- branches/eam_branches/relastro.20100326/src/UpdateChips.c	(revision 27487)
+++ branches/eam_branches/relastro.20100326/src/UpdateChips.c	(revision 27488)
@@ -7,4 +7,5 @@
   Image *image;
   StarData *raw, *ref;
+  Coords *oldCoords;
 
   image = getimages (&Nimage);
@@ -24,7 +25,12 @@
     assert (Nraw == Nref);
 
+    saveCoords (&image[i].coords, i);
+
     // FitChip does iterative, clipped fitting
     fprintf (stderr, "image %lld : Nstars: %lld\n", (long long) i, (long long) Nraw);
-    FitChip (raw, ref, Nraw, &image[i].coords);
+    if (!FitChip (raw, ref, Nraw, &image[i].coords)) {
+      oldCoords = getCoords (i);
+      memcpy (&image[i].coords, oldCoords, sizeof(Coords));
+    }
 
     free (raw);
