fixed bugs with search graphs