fix bug in hwEtSum method