fix one-based index over nodes