fixed bug of tree