Fixed bug in navigation template