Update lib/tree.class.php