Meanwhile, despite insistent advice to definitively crush Carrera and his forces, Salazar tried to negotiate with him diplomatically; he even went as far as to show that he neither feared nor distrusted Carrera by removing the fortifications of the Guatemalan capital, in place since the battle of Villa Nueva. Taking advantage of Salazar's good faith and Ferrera's weapons, Carrera took Guatemala City by surprise on 13 April 1839; Salazar, Mariano Gálvez and Barrundia fled before the arrival of Carrera's militiamen. Salazar, in his nightshirt, vaulted roofs of neighboring houses and sought refuge, reaching the border disguised as a peasant. With Salazar gone, Carrera reinstated Rivera Paz as head of state.