Fairmount, NY -- The insurance company for a Dunkin Donuts on West Genesee Street in Fairmount has agreed to pay $50,000 to a 12-year-old boy who ate a "foul smelling" doughnut 5 1/2 years ago.

A settlement agreement filed this month in state Supreme Court says the boy's mother purchased the doughnut on Aug. 25, 2011. The boy was 7 years old.

The cashier acknowledged that the box of doughnuts smelled bad, but the boy had eaten one by that point.

A day later, while at the State Fair, the boy started having facial tics and eye twitching. He was taken to the Upstate University Hospital emergency room to rule out seizures and later released.

In the next few days, he saw his pediatrician and a neurologist. Neither of them found anything that appeared to point to lasting damage.

There were enough other complaints about smelly doughnuts that day that the Onondaga County health department investigated. The store was fined $25,000 for selling doughnuts with a strong chemical odor.

By the time a health investigator arrived, the batch of bad doughnuts had been thrown out and the new batches were fine. The cause of the foul smell was never determined.

Two years later, the boy visited a neuro-opthamologist and a toxicologist for occasional eye twitches. Both found his health to be normal.

The toxicologist found it very unlikely that one bad doughnut had contributed to the eye twitching.

A lawyer filed the settlement agreement Jan. 12 after Travellers Insurance agreed to the payout. The lawyer asked for one-third of the money, a standard commission in civil cases.

A judge was asked to approve the settlement, which includes money to be paid to the boy when he gets older.