More minor fixes to the blending code.