fix bug in navigation