weird situation where current index is out of range