Fixed a navigation bar bug