Fixed conditional bug into register_rsa