fix crash for unsupported Encryption on OS X