Is this really the root cause?
OK, so a faulty algo caused a bad problem. But why was there a faulty algo? Generally it's because of lack of testing. Why is there lack of testing? Generally because of lack of QA resources. And why is there a lack of QA resource? Outsourcing to the cheapest bidder because of some ideological ideals. If you do your IT on the cheap, it's not surprising that things go wrong.