Fixed the legend in the plot.