[BUG Fix] when has an old connection to the domain.  setting the host of that domain will fail.(found by zhichaozhou).