fix problem with add_domain