bug fix searchgraph