fixes the encrypt checkbox problem