fix error on graph's working
Merge pull request #1296 from BusarovVyacheslav/fix-graph-error

fix error on graph's working