changePlot(): Add missing var declaration to id