fix for case where message is split in length specifier