Partially fix isTransparent check