It's better to reset `index_` in the same place where you reset the cursor itself. It you wish to retain the increment/decrement here, you can set `index_` to 0 or `resultsCount_ + 1`.