fix nav for pages with long names