fixes in Tree