Index: trunk/psModules/src/camera/pmFPAfileDefine.c
===================================================================
--- trunk/psModules/src/camera/pmFPAfileDefine.c	(revision 23272)
+++ trunk/psModules/src/camera/pmFPAfileDefine.c	(revision 23275)
@@ -522,12 +522,4 @@
     file->filesrc = psStringCopy("{CHIP.NAME}.{CELL.NAME}");
 
-    if (file->type == PM_FPA_FILE_MASK) {
-        if (!pmConfigMaskReadHeader(config, phu)) {
-            psError(PS_ERR_IO, false, "Error reading mask bits");
-            psFree(phu);
-            return NULL;
-        }
-    }
-
     // Examine the list of input files and validate their cameras
     // Associate each filename with an element of the FPA
@@ -555,4 +547,12 @@
             }
             psFree(realName);
+        }
+
+        if (i == 0 && file->type == PM_FPA_FILE_MASK) {
+            if (!pmConfigMaskReadHeader(config, phu)) {
+                psError(PS_ERR_IO, false, "Error reading mask bits");
+                psFree(phu);
+                return NULL;
+            }
         }
 
