fix transparency bug