fix off-by-one in via_indices