restored currentIndex to 0