fix dumptree bug