Fixing nav bar rendering issue