fixed a little memory leak in TreeExtended