Fix instantiation of remote executor.