fix some bug in basic tree.