fixed merge_graph