fix RGB and RGBA