Fix errors with graph backend