However, the Second Revolution did not fare well for the Kuomintang. The leading Kuomintang military force of Jiangxi was defeated by Yuan's forces on August 1 and Nanchang was taken. On September 1, Nanjing was taken. When the rebellion was suppressed, Sun and other instigators fled to Japan. In October 1913 an intimidated parliament formally elected Yuan Shikai President of the Republic of China, and the major powers extended recognition to his government. Duan Qirui and other trusted Beiyang generals were given prominent positions in the cabinet. To achieve international recognition, Yuan Shikai had to agree to autonomy for Outer Mongolia and Tibet. China was still to be suzerain, but it would have to allow Russia a free hand in Outer Mongolia and Tanna Tuva and Britain continuation of its influence in Tibet.