In the east, the Austrians drove into the Duchy of Warsaw but suffered defeat at the Battle of Raszyn on 19 April 1809. The Polish army captured West Galicia following its earlier success. Napoleon assumed personal command and bolstered the army for a counter-attack on Austria. After a few small battles, the well-run campaign forced the Austrians to withdraw from Bavaria, and Napoleon advanced into Austria. His hurried attempt to cross the Danube resulted in the major Battle of Aspern-Essling (22 May 1809) — Napoleon's first significant tactical defeat. But the Austrian commander, Archduke Charles, failed to follow up on his indecisive victory, allowing Napoleon to prepare and seize Vienna in early July. He defeated the Austrians at Wagram, on 5–6 July. (It was during the middle of that battle that Marshal Bernadotte was stripped of his command after retreating contrary to Napoleon's orders. Shortly thereafter, Bernadotte took up the offer from Sweden to fill the vacant position of Crown Prince there. Later he actively participated in wars against his former Emperor.)