Moved addMethodCall outside the loop
Minor fix [ci skip]