Merge: allow masking even if B is not connected.