fixed stackoverflow in delTree