Fix a bug in the palette from i18n transition.