copying of palettes fixed