Fixed plots legend on group-by when repeated rows for the legend column are present.