Fixed some text issues in the legend