diff --git a/DataQuality/dqm_algorithms/src/BinHeightThreshold.cxx b/DataQuality/dqm_algorithms/src/BinHeightThreshold.cxx
index 7b8d395a9ef44339bf2e3f6f7ab808b82fa3c5b9..74b36d8bc2c6e95da935ffeda86b7295b7e97ae2 100644
--- a/DataQuality/dqm_algorithms/src/BinHeightThreshold.cxx
+++ b/DataQuality/dqm_algorithms/src/BinHeightThreshold.cxx
@@ -145,8 +145,8 @@ dqm_algorithms::BinHeightThreshold::execute(	const std::string &  name,
 	  i_currentLB--;
 	}
     }
-  //if the histogram is just empty, or still has too few bins, do nothing (check already done, in principle should not happen)
-   if(i_currentLB<=0)
+  //if the histogram is just empty, or still has too few bins, do nothing 
+   if(i_currentLB<=0 || i_currentLB<n_bins)
     {
      ERS_DEBUG(1,"start_from_last parameter >= total number of bins, I just cannot do the check. Do nothing.");
      return result;