Fix partial packet length init