Fix encryption