fix RSA (complete)