Fix improper parameters to ReflectionMethod::invoke