fix bug in turning off auto-decrypt