GeoQuiz Landscape Mode not Working

I did everything as it was written in the step of book.
but when I switch to either landscape mode or in portrait mode, my mCurrentIndex gets incremented by 1 every time and reach to last index.
as per the book instruction, it should be still in the same state.