Added the correct names to the legend