fix bug where plotter only plots first subtree