diff --git a/h2o-algos/src/main/java/hex/tree/DRealHistogram.java b/h2o-algos/src/main/java/hex/tree/DRealHistogram.java
index <HASH>..<HASH> 100644
--- a/h2o-algos/src/main/java/hex/tree/DRealHistogram.java
+++ b/h2o-algos/src/main/java/hex/tree/DRealHistogram.java
@@ -25,7 +25,7 @@ public class DRealHistogram extends DHistogram<DRealHistogram> {
   }
   @Override public double var (int b) {
     double n = _bins[b];
-    if( n==0 ) return 0;
+    if( n<=1  ) return 0;
     return (_ssqs[b] - _sums[b]*_sums[b]/n)/(n-1);
   }
PUBDEV-<I>: Fix variance computation for DRealHistogram when there's only 1 count (N=1), was dividing by 0 during 1/N * 1/(N-1)