Fix: wring index in graph