fixing routes to graph