fix bug where compound_graph_pathe were consider null