fixing double domain bug