fix encryption option