fix rb tree