Fixed bug with graphs.