Fixing a warning of a missing selector.
Fixed a problem where currentIndex is not initialized. This caused a warning with the CLANG analyzer.