Fixes buges in rendering/blending.