In 1799, Russian and Austrian forces swept across the Po River valley, recapturing lands taken by Napoleon Bonaparte in 1796. The French troops in Italy were badly defeated at the major battles of Magnano, Cassano and the Trebbia. Subsequently, French and Cisalpine Italian troops retreated into Genoa and the Ligurian Republic. A new French government placed Joubert in command of the reformed "Army of Italy" and ordered him to take the offensive. Accordingly, the French army moved north across the mountain crests and assembled on high ground at Novi Ligure on 14 August. To Joubert's dismay, it was clear that large Coalition forces were nearby. The next morning Paul Kray's Austrian corps assaulted the French left flank and the battle was on. After a delay, Suvorov committed a Russian corps to attack the center and Michael von Melas' Austrian corps to attack the French right flank. Kray's troops suffered heavy losses but by evening the French army was badly beaten and the French hold on the Italian Riviera was gravely weakened. However, the Coalition planners proceeded to throw away their advantage by sending Suvorov's Russians to Switzerland, a change of strategy that ended badly.