fix chdomain bug