fix an error so that the algorithm can converge