refactor. fix when no preventdomains.