Fixes bug when sending 64kb packets.