Index: trunk/psphot/src/psphotMaskReadout.c
===================================================================
--- trunk/psphot/src/psphotMaskReadout.c	(revision 6715)
+++ trunk/psphot/src/psphotMaskReadout.c	(revision 6900)
@@ -21,5 +21,5 @@
 
     // psImageKeepRegion assumes the region refers to the parent coordinates
-    psImageKeepRegion (readout->mask, keep, "OR", PM_SOURCE_MASK_INVALID);
+    psImageKeepRegion (readout->mask, keep, "OR", PM_MASK_BAD);
 
     return true;
