fix for domain check