fix two typos in modules/domain.py