Fix bug if get invalid URL/domain name will return