Fix broken graph retrieval api