Fixing a small bug on the navigation bar