Fixed a bug with the nav bar