Fix longstanding transparency bugs