EHN: avoiding zeros in the denominator