fix iterators but the rbtree has memory when deconstruct