It gets fixed when our “public servants” lose sovereign immunity and are held personally liable for these kind of actions.
A lot of this is as a revenue stream for the locality, just like red light cameras. The State could put a stop to it, but since they usually get a cut of the action, they turn a blind eye.