bug fix for CloneGraph