Fix: improve edge pointer accuracy