Corrected error in MethodInvoker