Bug fix in treefile secname variable