Fixed NPEs when translating domains.