fix example msg buffering issue