fix error with graph depth setting

- it wasn't possible to see the graph if
  no depth setting was provided.