Correct the return of writeMany