withIndexDo now returns the correct index key