Fix a bug in navbar