Input rebinding does not work on builds

Hello. We setup our game using the input system mostly using the code from the rebinding sample project. everything works fine in editor. But not on our Windows release build.

The rebinds fail to apply in game. For example. The player rebinds jump key from A to B. The UI will show that the jump key is now B. but to actualy jump the player still needs to press A.

Its like the bit that checks the binds do not work

Here is the example of the code we use.

public PlayerInput playerInput;
InputAction jumpAction;

void Awake()
{
            jumpAction = playerInput.actions["Jump"];
}

public bool GetButtonRelease(InputButton _inputButton)
{
                case InputButton.RunToggle: return runToggleAction.WasReleasedThisFrame();
}

The UI that the players use to rebind is the exact same script from the rebind sample RebindActionUI.cs

Any ideas what it could be.

One other thing. We have some UI when you can interact with objects. The UI shows the correct binding, but you still have to use the old binding

Forcing the input system to version 1.8.2 fixed it for us