Oops - I forgot to remove that line. I'm only referencing the currentPath variable when I iterate over the page mappings.