Fix apiMethods reference in DeferredApiCall.