Index: trunk/psastro/src/psastroUtils.c
===================================================================
--- trunk/psastro/src/psastroUtils.c	(revision 5565)
+++ trunk/psastro/src/psastroUtils.c	(revision 5575)
@@ -102,7 +102,9 @@
 		match = pmAstromRadiusMatch (rawstars, refstars, config);
 
-		// fit astrometric terms
+		// improved fit for astrometric terms
 		pmAstromMatchFit (chip->toFPA, rawstars, refstars, match, config);
+		chip->fromFPA = p_psPlaneTransformLinearInvert (chip->toFPA);
 	    }
+	    pmAstromWriteWCS (chip->toFPA, fpa->toSky, cell->header);
 	}
     }
