fix makenewtree.m