It will not be fixed. The lawyers have control of our legal system. They are the politicians and judges. The system is theirs; if we want to change the status quo, it will take nothing less than a bloody revolution.
Politicians being trained lawyers is a good thing - they (supposedly) know the nightmare that is the legal system
To put it into a software developers context - which hopefully makes it easier to understand for some.
The law is legacy code that stretches back a few centuries (literally) that has been written by many many people with little in common, and has active users who must be consulted upon change.
Also most of the legislators
Lawyers are the first thing AI should drive out of business.
Or a flood of new lawyers with a basis of Beneficence and ethics, and a knowing willingness to act against maximal short-term self interest. (Though still self profitable, just not maximally)