Palette recalculation discoloration issue fix.