Fix totalDocsSent and totalDataSent