Transparency Fix

I fixed the location of the transparency functions.