fixed a bug in the nav bar