Fix delegation of remote tasks.