Fixed error messages in Solver.