Fix for SafeBitmapShader.