Fixed bug where 1st message was not included in lengths