Fix some bugs in order to run in the big data
Feedback from comments
Merge branch 'wbiesing/ray-works-on-partially-merged-graph' into anbangx/fix-some-bugs-to-run-in-big-data