ALLEGAN, Mich. (AP) — A man convicted of criminal sexual conduct doesn’t deserve a new trial despite learning that the judge was sharing her opinion of the case through emails with the Allegan County prosecutor, the Michigan Court of Appeals said.

Daniel Loew had been granted a new trial, but the 2-1 decision by the appeals court reversed that decision Thursday.

READ MORE: Detroit Man Charged In Fatal Hit-And-Run That Killed 32-Year-Old Woman

“The record does not support even an inference that the emails provided any advantage or altered any tactics by the prosecution,” the court said.

A jury in 2019 convicted Loew of criminal sexual conduct. Judge Margaret Zuzich-Bakker sentenced him to at least 20 years in prison.

It turned out that the judge had sent emails to prosecutor Myrene Koch during the trial, asking a question about the victim and offering an unflattering opinion about state police.

READ MORE: Rollover Crash In Highland Park Kills 1 Person

“This trooper didn’t do a very good investigation. Don’t they have detectives anymore?” Zuzich-Bakker said.

Koch said she wasn’t directly involved in Loew’s trial and didn’t share the judge’s opinions with an assistant prosecutor.

The emails were obtained by Michael Villar, who challenged Koch in the 2020 Republican primary but lost by 17 votes.

MORE NEWS: Mom Says Gaylord Tornado Was Right Behind Her As She Drove To Safety

© 2021 Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.