fix: missing an int index (removed as an unused var before)