Fix Issue #37, wrong iteration in HTreeMap