Guatemala's congress selected a new vice president Thursday to replace a woman who resigned over a widening customs corruption scandal that implicated her top aide.

Lawmakers picked Alejandro Maldonado Aguirre, a constitutional judge who has also been a cabinet minister, ambassador and political leader, from three nominees submitted by President Otto Perez Molina.

Maldonado replaces former Vice President Roxana Baldetti, whose private secretary has been singled out by authorities as the alleged ringleader of the multimillion-dollar corruption scheme.

Baldetti denies any involvement but nonetheless stepped down last Friday after lawmakers began a probe of whether to remove the immunity that comes with her office.

Maldonado was a late addition to Perez Molina's shortlist after two failed attempts this week to present congress with a full three-person slate.

First, Labor Minister Carlos Contreras was scratched because of an apparent constitutional conflict that would have prevented him from assuming the office.

Then there were objections to the replacement nominee, Congressman Oliverio Garcia Rodas. Lawmakers feared that if Garcia were selected, his seat — and its attendant immunity privileges — would have gone to former Baldetti adviser Daniela Beltranena before prosecutors have a chance to determine whether Beltranena may have been involved in the corruption scandal.

Garcia ultimately withdrew his name from consideration.

Several dozen people have been implicated in the scheme, in which officials took bribes to evade millions of dollars in customs duties.

Wiretap recordings in the case include multiple mentions of "the No. 2," ''the lady" and "the R," and prosecutors are probing whether those could be references to Roxana Baldetti.

The scandal sparked large demonstrations and calls from various sectors of society for the vice president to resign.

Baldetti has been ordered not to leave the country.