fix multipart packets