Fixed error in RSA key generation