Fix issue with plotting smoothed average.