fix domain bug