fixed bug in treeviewer.php