fixed legend labels and tooltips