Fix transparency bug: windows is not always opaque