resetting currentSectionIndex to 0 if it goes below 0