fix rsa crash