Replace the more complicated algorithm with a simpler, slower one that is more obviously correct.