fixed nav finding 'undefined' for some sections