Rebuilds navigation.