SACRAMENTO, Calif. (AP) — A California judge has rewritten the official ballot description for a proposed initiative repealing recent gas tax increases after finding the one written by Attorney General Xavier Becerra was flawed and misleading.

Sacramento County Superior Court judge Timothy Frawley finalized his ballot title and summary on Monday following a lawsuit filed by Assemblyman Travis Allen of Huntington Beach. Allen is a Republican candidate for governor who wants to repeal the gas tax.

Becerra's title said the ballot measure would eliminate transportation funding by "repealing revenues." Frawley says that's confusing to voters and changed the title to say explicitly that it would repeal gas and diesel taxes in addition to transportation funding.

Becerra's office did not immediately respond to a request for comment Tuesday.