Index: branches/eam_branches/ipp-20150326/psphot/src/psphotFitSourcesLinear.c
===================================================================
--- branches/eam_branches/ipp-20150326/psphot/src/psphotFitSourcesLinear.c	(revision 38020)
+++ branches/eam_branches/ipp-20150326/psphot/src/psphotFitSourcesLinear.c	(revision 38021)
@@ -688,5 +688,7 @@
     assert (modelVar);
 
-    psMetadataRemoveKey (readout->analysis, "PSPHOT.MODEL.VAR"); 
+    if (modelVar) {
+      psMetadataRemoveKey (readout->analysis, "PSPHOT.MODEL.VAR"); 
+    }
 
     // clear modelVar pointers for all of the source models
Index: branches/eam_branches/ipp-20150326/psphot/src/psphotSubtractBackground.c
===================================================================
--- branches/eam_branches/ipp-20150326/psphot/src/psphotSubtractBackground.c	(revision 38020)
+++ branches/eam_branches/ipp-20150326/psphot/src/psphotSubtractBackground.c	(revision 38021)
@@ -28,6 +28,6 @@
 
     // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
-    psImageMaskType maskVal = psMetadataLookupImageMask(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels
-    assert (maskVal);
+    // psImageMaskType maskVal = psMetadataLookupImageMask(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels
+    // assert (maskVal);
 
     psImageBinning *binning = psMetadataLookupPtr(&status, model->analysis, "PSPHOT.BACKGROUND.BINNING");
