However, Carrascosa, who was in command of the Neapolitan troops around Modena, saw the Austrian trap and ordered a retreat to a defensive line behind the Panaro where he was joined by the remainder of his division, which had been evacuated from Reggio Emilia and Modena.