Corrected a bug in the navigation bar