A man sentenced to life in prison for the murders of two women in Hamtramck will get a new trial because his jury was not properly sworn in.

In December 2012, 29-year-old Brandon Cain was sentenced on charges of first-degree murder, torture, unlawful imprisonment and felony firearm charges in the deaths of 18-year-old Abreeya Brown and 22-year-old Ashley Conaway.

But the Michigan Court of Appeals has found that Wayne County Circuit Judge Vonda Evans’ clerk had erred in swearing in the jury, so Cain should have a new trial.

The Detroit News reports the court clerk had mistakenly read the oath meant for prospective jurors, rather than the oath for jurors who had been selected.

The Wayne County Prosecutor’s office says they will be seeking leave from the Supreme Court to appeal the ruling.

The bodies of Abreeya Brown and Ashley Conaway were found fatally shot in a wooded area of Detroit’s far west side.

Four other men were sentenced to lengthy prison terms in the slayings.