take NavigationRoot into account