fixed bugs with with the nav bar