fix bgr/rgb color issue