fix adding and deleting domain