fixed bug with make.treedata and vectors