fix palettes