domain: fix nested domains