diff --git a/dotnet/runtime/Runtime/MultiDispatch/MultiDispatcher.cs b/dotnet/runtime/Runtime/MultiDispatch/MultiDispatcher.cs
index 12a9930..0f64974 100644
--- a/dotnet/runtime/Runtime/MultiDispatch/MultiDispatcher.cs
+++ b/dotnet/runtime/Runtime/MultiDispatch/MultiDispatcher.cs
@@ -20,11 +20,11 @@ public static class MultiDispatcher
///
///
///
- public static RakudoCodeRef.Instance FindBestCandidate(RakudoObject[] Candidates, RakudoObject Capture)
+ public static RakudoCodeRef.Instance FindBestCandidate(RakudoCodeRef.Instance DispatchRoutine, RakudoObject Capture)
{
// Sort the candidates.
// XXX Cache this in the future.
- var SortedCandidates = Sort(Candidates);
+ var SortedCandidates = Sort(DispatchRoutine.Dispatchees);
// Extract the native capture.
// XXX Handle non-native captures too.
diff --git a/dotnet/runtime/Runtime/Ops.cs b/dotnet/runtime/Runtime/Ops.cs
index 24b077a..4ad1897 100644
--- a/dotnet/runtime/Runtime/Ops.cs
+++ b/dotnet/runtime/Runtime/Ops.cs
@@ -545,11 +545,11 @@ public static RakudoObject multi_dispatch_over_lexical_candidates(ThreadContext
var CurOuter = TC.CurrentContext;
while (CurOuter != null)
{
- var Dispatchees = CurOuter.StaticCodeObject.Dispatchees;
- if (Dispatchees != null)
+ var CodeObj = CurOuter.StaticCodeObject;
+ if (CodeObj.Dispatchees != null)
{
var Candidate = MultiDispatch.MultiDispatcher.FindBestCandidate(
- Dispatchees, TC.CurrentContext.Capture);
+ CodeObj, TC.CurrentContext.Capture);
return Candidate.STable.Invoke(TC, Candidate, TC.CurrentContext.Capture);
}
CurOuter = CurOuter.Outer;