Fix packetsize issue