fixed another bug in first version of load_graph_data