fixed bug with swatch selection