Fix g.v() by correcting scoping of this in callback