small fix for empty graph data