fix bug where we were trying to iterate through undefined 'navPoints' variable