Fixed encryption bug for GHG.