fix problem with multiple swatches on a single line