A tiny bungle with parking tickets just cost the city $26 million.

The city Department of Finance discovered earlier this year that while the code number for a certain violation was changed from 4-08h10 to 4-08h1, the switch never made it to a half-million tickets given out by traffic agents for the violation.

Since the wrong code technically invalidates the tickets, the city had no choice but to refund and dismiss them, according to Department of Finance spokeswoman Sonia Alleyne.

In all, the city issued refunds for about $18 million in tickets to more than 400,860 drivers who had paid them and dismissed another 100,000 which would have been worth another $8 million.

The tickets were given for failing to display muni-meter receipts properly in a driver’s windshield window.