Bug fixing in encryption settings