GRANDVILLE, Mich. (CBS Local)– A Michigan mother took away her daughter’s iPhone and almost ended up going to jail for it until charges were dropped Tuesday, minutes after the start of a court hearing.

Jodie May told authorities that she took her daughter’s phone after she was punished in school.

“I was just being a mom, a concerned parent and disciplining my daughter,” said May.

However, May’s ex-husband called the police and reportedly told them that he owned the phone and claimed the punishment against their daughter was a crime. He filed a complaint with the Ottawa County Sheriff’s Office, alleging his ex-wife stole the phone.

The charged led to May’s arrest in May, although she was immediately released on a $200 bond. She faced a misdemeanor charge of larceny and was facing up to 93 days in jail.

After further review, prosecutors discovered that the ex-husband didn’t own the phone. Prosecutors approached the judge on Tuesday at the start of a bench trial to request the charges against May be dropped.

“The mother defendant being the mother of the minor child, I believe that changes the case significantly,” the assistant prosecutor said. “Therefore we’re requesting that the charges be dismissed.”

May ended up leaving court with a clean record, but is upset over the whole ordeal.

“I can’t believe I had to be put through it, my daughter had to be put through it, my family. I’m very surprised, but I’m very happy with the outcome,” she said.