Fix getNavigation function