Fixes for alpha-blending

Here's the modifications I mentioned.