Encryption bug fixed