Fixed various errors in solvers