Bug during convergence of conjugate gradient