fixes to transparency performance