Trouble trying to rebind a dpad composite

Hi! I have this code that works greatly with simple actions, but when it comes to composites the rebind just never happens. I have to cancel every time while it works very well with simple actions. Could you please tell
me what is wrong with this?

private void RebindAction(InputAction actionToRebind)
        {
            actionToRebind.Disable();

            rebindingOperation?.Dispose();
            rebindingOperation = actionToRebind
                .PerformInteractiveRebinding()
                .WithTargetBinding(onKeyBinderClicked.KeyBindingProfile.GetBindingIndex())
                .WithControlsExcluding("<Mouse>/position")
                .WithControlsExcluding("<Mouse>/delta")
                .OnMatchWaitForAnother(0.1f)
                .OnCancel(OnRebindCancelled)
                .OnComplete(OnRebindCompleted)
                .Start();
        }

[...]

public virtual int GetBindingIndex()
{
    return 0;
}

[...]

public override int GetBindingIndex()
{
    return actionReference.action.bindings.IndexOf(x =>
        x.name == compositeName);
}

Thanks in advance!
Sam.

This line fixes the issue for me :
rebindingOperation.WithExpectedControlType("Button");