Update InferenceMethod.h

another fix, overseen before