was calling the wrong _(min|max)_index function in _min_index