fixed convergence check generation