exactly.
also - you say it was a "stupid ticket".
But you had an open container in a motor vehicle.
That is against the law.
You were the one breaking the law.
The ticket is the natural consequence of that law-breaking decision.
If stupidity is involved.... it's not on the part of the ticket.