Fixed bug in navigation bar