fixed problems with blending/z-buffer