fix encyrpt