Index: /branches/czw_branch/20160809/psastro/src/psastroMosaicAstrom.c
===================================================================
--- /branches/czw_branch/20160809/psastro/src/psastroMosaicAstrom.c	(revision 39698)
+++ /branches/czw_branch/20160809/psastro/src/psastroMosaicAstrom.c	(revision 39699)
@@ -44,11 +44,13 @@
     if (!status) psAbort ("missing config value");
 
-    // XXX if projection is not TAN, fit the measured projection here and combine toTPA/fromTPA functions
+    // if projection is not TAN, fit the measured projection here and combine toTPA/fromTPA functions
+    bool fitMosaicDistortion = true;
     if ((fpa->toSky->type != PS_PROJ_TAN) && (fpa->toSky->type != PS_PROJ_DIS)) {
       if (!psastroProjectionRefit (fpa, recipe)) psAbort ("failed to refit distortion");
+      fitMosaicDistortion = false;
     }
 
     // this should be in a loop with nIter =
-    for (int iter = 0; iter < nIter; iter++) {
+    for (int iter = 0; fitMosaicDistortion && (iter < nIter); iter++) {
         if (!psastroMosaicFit (fpa, recipe, outroot, iter)) return false;
     }
