Fix crash with mobile navLinks.