fixed resize issue with buffer->xPacket