fix nav bar loading