fix rb-tree