fix idempotent issue for createdomain