Fix spelling error.
Fix indentation to comply with pep8.
Fix calling setter for domain field incorrectly.