fixed deserialization in case of reorder/lose of packets