fixed 'no encryption type' regression bug