Compositing multiple masks
&quot;Set Alpha&quot; should be used only once, to associate the alpha channel to the RGB information on the image.
To combine alpha channel use a math node and add (or subtract) the alphas together before associating.