Fix makeTreeList