addTree fix