Fixed bug in navigation