Windows stop activating (un-minimising)

I used to have a macro that was working just fine and now does not.
It does simple things:

  1. open browser to front
  2. open website in a new tab
  3. open a specific notion page

The only change has been that I plugged my streamdeck into it and trigger the macro with it. But I tried to create new macros with only this action and it's not working.

The problematic part is the activating the window (e.g. bringing it up if it's minimised).
It does open it if the app is completely closed though.

Any ideas?