fix bugs with graphviz