fixed nav bar index bug