Index: trunk/psastro/src/psastroExtractGhosts.c
===================================================================
--- trunk/psastro/src/psastroExtractGhosts.c	(revision 23668)
+++ trunk/psastro/src/psastroExtractGhosts.c	(revision 23669)
@@ -107,5 +107,8 @@
 		    if (ghosts == NULL) { 
 			ghosts = psArrayAllocEmpty (100);
-			psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.GHOSTS", PS_DATA_ARRAY, "astrometry matches", ghosts);
+			if (!psMetadataAdd (ghostReadout->analysis, PS_LIST_TAIL, "PSASTRO.GHOSTS", PS_DATA_ARRAY, "astrometry matches", ghosts)) {
+			  psError(PSASTRO_ERR_CONFIG, false, "failure to add ghosts to readout");
+			  return false;
+			}
 			psFree (ghosts);
 		    }
@@ -127,4 +130,6 @@
     }
 
+    psastroExtractFreeChipBounds();
+
     psFree (view);
     return true;
