fix packetLen issue