Fix bug that domain is required