What started off as a minor traffic violation for an Ohio man quickly turned into a major felony when he dropped a bag of cocaine in court Tuesday.

Loraine resident Lamar Reed approached the bench to make a plea on a traffic ticket. When he took his hat off before the judge, a bag of cocaine suddenly fell out of his hat and landed on the floor, according to media outlets.

No one noticed the bag of drugs for about an hour, KRON-TV reported. Finally a court officer noticed the cocaine on the floor.

UNITED KINGDOM - JUNE 01:  Cocaine is an alkaloid substance which exists in the leaves of the coca plant, which is native to Peru and other South American countries. Indigenous South American peoples, including the Incas, chewed coca leaves to alleviate hunger and fatigue. Synthetically produced cocaine was the first local anaesthetic to be used, but was replaced by other drugs as it was found to be addictive. Cocaine is used illegally as a recreational drug as it acts on the central nervous system inducing feelings of euphoria. (Note: castor sugar has been used as a substitute for cocaine in this picture.)  (Photo by SSPL/Getty Images)
icon to expand image

The judge in the case told WBKO-TV he's never seen anything like it.

“He was only here for a traffic ticket, and he made a simple traffic ticket, where there’s only the possibility of a fine, and turned it into a felony,” Judge Mark Mihok said.

The episode was caught on court surveillance camera, so officials were able to see who dropped it.

Reed was later arrested and charged with a fifth-degree felony.