fixed a compile issue in TreeNode