Index: /trunk/psastro/src/psastroChipAstrom.c
===================================================================
--- /trunk/psastro/src/psastroChipAstrom.c	(revision 18505)
+++ /trunk/psastro/src/psastroChipAstrom.c	(revision 18506)
@@ -102,13 +102,13 @@
             }
             if (numGoodRO > 0) {
-                numGoodCell++;
+                numGoodCells++;
             }
         }
-        if (numGoodCell > 0) {
-            numGoodChip++;
+        if (numGoodCells > 0) {
+            numGoodChips++;
         }
     }
 
-    if (fpa->chips->n == 1 && numGoodChip == 0) {
+    if (fpa->chips->n == 1 && numGoodChips == 0) {
         psError(PSASTRO_ERR_UNKNOWN, false, "Failed to fit single chip.");
         return false;
