encryption exception fix