fixed bug in navbar