fixed graphviz generation bug