Fixed checking not set domain.