fix graph-fetching for empty graph.