Fixed the legend