Still in 367 BC, Marcus Furius Camillus was appointed dictator because of an attack by the Gauls of northern Italy. According to Livy, on his return to Rome after defeating the Gauls, Camillus "was confronted with a fiercer opposition in the City. After desperate struggles the senate and the dictator were beaten, and the measures advocated by the tribunes were adopted. An election of consuls was held, against the wishes of the nobles ..." Lucius Sextius Lateranus was elected as one of the two consuls. The patrician senators declared that they would not ratify the election. The bitter dispute almost led to another plebeian secession. Camillus struck a compromise: in exchange for the patricians acknowledging the election of Lucius Sextius, the plebeians made the concession that the patricians might elect from the patricians one praetor to administer justice in the City. In that year the office of the curule aediles was also created.