@Hjorth,
What’s the UiPath.UIAutomation.Activities package activity you are using? Try upgrading it to the latest possible version.
UiPath.UIAutomation.Activities