修复Tree isLeaf