Fix encrypt