fix main domain bug