fixed domain bug