Palettes, attribute fetch fix (thanks @nzldvd).