[WinApp] Some times the application is not detected

I have a proble when i try to open a WPF application with WinAppDriver, some times it’s detected without problem, but in other cases it is not detected.

These are the parameters that I use, I removed the path of the application:

AppiumOptions desiredCapabilities = new AppiumOptions();
desiredCapabilities.AddAdditionalCapability("app", "");
desiredCapabilities.AddAdditionalCapability("createSessionTimeout", "60000");
desiredCapabilities.AddAdditionalCapability("newCommandTimeout", "60000");
desiredCapabilities.AddAdditionalCapability("platformName", "Windows");
desiredCapabilities.AddAdditionalCapability("deviceName", "WindowsPC");

I left an image of as detect appium the application: