Fixed node removal in _dmt_free()