fixed bug in nav bar