fix a bug leading to wrong NH count