Fixed a newly introduced bug in the logic of graph search page. Further optimisation, now most searches seem to be much faster then before.