Fix transparency layer bug