fix #27871 + more cosmetic changes to palettes