strong resistance and the Central Powers riposted with a strong counter-attack. The Russian army retreated and suffered heavy losses, and it became clear from many incidents of desertion, sabotage, and mutiny that the army was no longer willing to attack. The military heavily criticised Kerensky for his liberal policies, which included stripping officers of their mandates and handing over control to revolutionary-inclined "soldier committees" () instead; abolition of the death penalty; and allowing revolutionary agitators to be present at the front. Many officers jokingly referred to commander-in-chief Kerensky as the "persuader-in-chief" On 2 July 1917 the Provisional Government's first coalition collapsed over the question of Ukraine's autonomy. Following the July Days unrest in Petrograd (3–7 July [16–20 July, N.S.] 1917) and the official suppression of the Bolsheviks, Kerensky succeeded Prince Lvov as Russia's Prime Minister on . Following the Kornilov Affair, an attempted military coup d'état at the end of August, and the resignation of the other ministers, he appointed himself Supreme Commander-in-Chief as well. On 15 September Kerensky proclaimed Russia a republic, which was contrary to the non-socialists' understanding that the Provisional Government should hold power only until a Constituent Assembly should meet to decide Russia's form of government, but which was in line with the long-proclaimed aim of the Socialist Revolutionary Party. He formed a five-member Directory, which consisted of himself, Minister of Foreign Affairs Mikhail Tereshchenko, Minister of War General Aleksandr Verkhovsky, Minister of the Navy Admiral Dmitry Verderevsky and Minister of Posts and Telegraphs . He retained his post in the final coalition government in October 1917 until the Bolsheviks overthrew it on . Kerensky faced a major challenge: three years of participation in World War had exhausted Russia, while the provisional government offered little motivation for a victory outside of continuing Russia's obligations towards its allies. Russia's continued involvement in the war was not popular among the lower and middle classes, and especially not popular among the soldiers. They had all believed that Russia would stop fighting when the Provisional Government took power, and subsequently felt deceived. Furthermore, Vladimir Lenin and his Bolshevik party were promising "peace, land, and bread" under a communist system. The Russian army, war-weary, ill-equipped, dispirited and ill-disciplined, was disintegrating, with soldiers deserting in large numbers. By autumn 1917, an estimated two million men had unofficially left the army. Kerensky and other political leaders continued Russia's involvement in World War I,