fix in _heap_ref_item