fix for setting opacity