Fixed bug with flowgraph