Index: trunk/psModules/src/objects/pmFootprintCullPeaks.c
===================================================================
--- trunk/psModules/src/objects/pmFootprintCullPeaks.c	(revision 31153)
+++ trunk/psModules/src/objects/pmFootprintCullPeaks.c	(revision 31263)
@@ -102,5 +102,6 @@
 	float beta = nsigma_delta * ALPHA;
 	float beta2 = PS_SQR(beta);
-	int nBins = sqrt(4.0*(maxFlux - min_threshold)/beta2) + 10; // let's be extra generous
+	float value = 4.0*(maxFlux - min_threshold)/beta2;
+	int nBins = (value > 1.0) ? sqrt(value) + 10 : 10; // let's be extra generous
 
 	// create a vector to store the threshold bins used for each peak
