Fix transparency issues.  Fixes #1082.