fix a bug for domain