C++ fix, add blending