minor fix to maxiter