Bug fixes to domain adder.