Fix domains patching