fixed a bug that presented when consuming large amounts of very large messages