Removed spurious updates in CG solver.