Fixed setting current tab after recovering crash.

It set currentIndex - 1 before.