Fix SolverError copy with last state.