addTree fix #31