While Jean Lannes's V Corps and Joachim Murat's Cavalry Corps moved directly east on Ulm, the rest of Napoleon's army swept past Ulm on the north bank of the Danube. Crossing the river to the east of the Austrians, the French I, II, III, IV, and VI Corps got between Ulm and Vienna. Austrian defeats at the battles of Wertingen and Günzburg followed on 8 and 9 October. A breakout attempt failed on 11 October at the Battle of Haslach-Jungingen. Finally, on 13 October, Mack ordered Werneck to march his corps northeast from Ulm in order to escape from the trap. His south flank was covered by Johann Sigismund Riesch's corps which held Elchingen. Archduke Ferdinand fled from Ulm with some cavalry.