Xbee receiving in packets

I had a similar problem and

I had a similar problem and this is what they told me on the arduino forums: "One possible issue i see is you don’t have a delay in there to help ensure the buffer has all the data that was sent. "