Index: trunk/psModules/src/camera/pmFPACopy.c
===================================================================
--- trunk/psModules/src/camera/pmFPACopy.c	(revision 11255)
+++ trunk/psModules/src/camera/pmFPACopy.c	(revision 11435)
@@ -37,5 +37,5 @@
 }
 
-#if 0
+#if 1
 // Find the blank (image-less) PHU, given a cell.
 static pmHDU *findBlankPHU(const pmCell *cell // The cell for which to find the PHU
@@ -279,8 +279,10 @@
     binItem->data.S32 *= yBin;
 
-    #if 0
     // Copy any headers
     pmHDU *targetHDU = pmHDUFromCell(target); // The target HDU
-    if (targetHDU && !targetHDU->header) {
+    if (targetHDU) {
+        if (!targetHDU->header) {
+            targetHDU->header = psMetadataAlloc();
+        }
         pmHDU *sourceHDU = pmHDUFromCell(source); // The source HDU
         if (sourceHDU->header) {
@@ -291,5 +293,8 @@
     // Copy the PHU over as well, if required
     pmHDU *targetPHU = findBlankPHU(target); // The target PHU
-    if (targetPHU && targetPHU != targetHDU && !targetPHU->header) {
+    if (targetPHU && targetPHU != targetHDU) {
+        if (!targetPHU->header) {
+            targetPHU->header = psMetadataAlloc();
+        }
         //        pmHDU *sourcePHU = pmHDUGetHighest(source->parent->parent, source->parent, source); // A source HDU
         pmHDU *sourcePHU = findBlankPHU(source); // The target PHU
@@ -298,5 +303,4 @@
         }
     }
-    #endif
 
     target->data_exists = true;
