Fixed bug that mis-reported the number of bytes sent.