Fix bug on setting domain.
Merge.