fixing encryption