fixred critial bug in merge graph