Fixed check_domain.