Removed some extra code and fixed a transparency issue