fix(index): Fix navBar crash bug