diff --git a/gstlal-inspiral/bin/gstlal_inspiral_mass_model b/gstlal-inspiral/bin/gstlal_inspiral_mass_model
index fc73d3561a7236d2f9b32939bd55cf86d42b8a18..7ccb8a9a5d50d2d8be63d0cbf1a193ad9ea0abce 100755
--- a/gstlal-inspiral/bin/gstlal_inspiral_mass_model
+++ b/gstlal-inspiral/bin/gstlal_inspiral_mass_model
@@ -116,7 +116,7 @@ for row in sngl_inspiral_table:
 
 coefficients = numpy.zeros((1, 1, max(ids)+1), dtype=float)
 for tid in ids:
-	coefficients[0,0,tid] = numpy.log(ids[tid])
+	coefficients[0,0,tid] = numpy.log(ids[tid] / len(sngl_inspiral_table))
 
 #print coefficients.max()
 #import matplotlib