完善TreeManager