Index: trunk/ppSim/src/ppSimMakeGalaxies.c
===================================================================
--- trunk/ppSim/src/ppSimMakeGalaxies.c	(revision 17557)
+++ trunk/ppSim/src/ppSimMakeGalaxies.c	(revision 18011)
@@ -9,5 +9,5 @@
 
     bool galaxyFake = psMetadataLookupBool(&mdok, recipe, "GALAXY.FAKE"); // Density of fakes
-    if (!galaxyFake) return NULL;
+    if (!galaxyFake) return true;
 
     float galaxyLum       = psMetadataLookupF32(&mdok, recipe, "GALAXY.LUM"); // Galaxy luminosity func slope
@@ -35,5 +35,5 @@
     float zp       	  = psMetadataLookupF32(&mdok, recipe, "ZEROPOINT"); // Photometric zero point
     float seeing   	  = psMetadataLookupF32(&mdok, recipe, "SEEING"); // Seeing sigma (pix)
-    float scale    	  = psMetadataLookupF32(&mdok, recipe, "SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel)
+    float scale    	  = psMetadataLookupF32(&mdok, recipe, "PIXEL.SCALE") * M_PI / 3600.0 / 180.0; // Plate scale (radians/pixel)
     float skyRate  	  = psMetadataLookupF32(&mdok, recipe, "SKY.RATE"); // Sky rate
     if (isnan(skyRate)) {
@@ -42,5 +42,5 @@
     }
 
-    if (galaxyDensity <= 0) return NULL;
+    if (galaxyDensity <= 0) return true;
 
     // Size of FPA
@@ -66,5 +66,5 @@
 	psLogMsg("ppSim", PS_LOG_INFO,
 		 "Image noise is above brightest random galaxy --- no random galaxy added.");
-	return NULL;
+	return true;
     }
 
@@ -138,4 +138,4 @@
 	}
     }
-    return galaxies;
+    return true;
 }
