Fixed a bug in the nav_bar