Corrected iterations variable to plot