Fix bugs in color blending