Fix off-by-one in non-default values of index's 2nd and 3rd arguments.