Michael Cohen, Donald Trump’s onetime personal lawyer and fixer, says he unwittingly passed along to his attorney bogus artificial intelligence-generated legal case citations he got online before they were submitted to a judge.

Cohen made the admission in a court filing unsealed Friday in Manhattan federal court after a judge earlier this month asked a lawyer to explain how court rulings that do not exist were cited in a motion submitted on Cohen’s behalf. Judge Jesse Furman had also asked what role, if any, Cohen played in drafting the motion.

The AI-generated cases were cited as part of written arguments attorney David M. Schwartz made to try to bring an early end to Cohen’s court supervision after he served more than a year behind bars. Cohen had pleaded guilty in 2018 to tax evasion, campaign finance charges and lying to Congress, saying Trump directed him to arrange the payment of hush money to a porn actor and to a former Playboy model to fend off damage to his 2016 presidential bid.