Corrected the legend display