Fix case where read whole message followed by incomplete message