Fix packetCrypt problem