Fix bug in graphs.

Signed-off-by: root <gleb.aronsky@lexisnexis.com>