Correct minor bugs preventing to edit a domain.