Fixed a bug where the vertex renderer was not reset after generating a new graph.