May, Klapka was designated to elaborate the united operation plan of all the armies from Hungary. According to this operation plan the main army under Görgei had to defend the Western border, while the army of Transylvania under Józef Bem had to defend mountain passes in the Eastern Carpathians, but in the same time he had to crush also the Romanian revolt from the Western Carpathians, to take the fortresses of Gyulafehérvár and Déva, then to attack towards West, taking the Titel Plateau, liberating Pétervárad, then advancing to the Adriatic Sea, or to the Western front. Although it was accepted by the Ministry Council on 20 May, this operation plan was met with harsh criticism from Görgei and Bem, who accused it of no concern for the imminent Russian intervention which menaced from North and from East, and that Lieutenant General Bem and General Mór Perczel had been designated to carry out military actions which exceeded their capacities, while the other Hungarian corps were condemned to almost complete inactivity. Bem declared that he would not carry out the military actions entailed on him by the operation's plan, and would remain in Transylvania to defend it from the imminent Russian attack, while Görgei said that the only correct thing to do was to immediately attack with all forces on the Western front towards Vienna, to crush the Austrian army before the Russians could intervene. As a result of these reactions and the start of the Russian intervention on 15 June 1849, Klapka's operation plan was not carried out. In June, when Görgei took over his duties in the War Ministry, Klapka substituted him in the command of the Army of the Upper Danube, being entrusted, together with the chief of the general staff Colonel József Bayer, to attack the imperial forces led by Field-Marshal Julius Jacob von Haynau in the region of the Vág river, and push them towards Pozsony and Vienna, but on 16 June they were defeated by the Austrians in the Battle of Zsigárd. Among the causes of the defeat was that Klapka did not tolerate that the head of the Central Operations Bureau, Colonel József Bayer, should have the authority over him. Their disagreements and contradictory orders affected the Hungarian troops' already weak chances of success during the Battles of Zsigárd, Ihász and Győr. When Görgei took over the main command, in the Battle of Pered from