fix issue with instrumenting provider.provide