bug with graphs update