Fixed up use of global variables in pathLabels.