fix nav generation