Fixed minor bug in navigation