change to fix a graph search bug