Fix instrumented function