Fixed a bug that causes the loss of messages when the send rate is high