fix domain creation