give correct classes to legend swatches