Cipher counter overflow fixed