It's probably not the best solution, but it was probably the...
It's probably not the best solution, but it was probably the most viable solution to avoid the least amount of problems.
It's probably not the best solution, but it was probably the most viable solution to avoid the least amount of problems.