fix graph dup bug