Fixed a bug related to navbar