fixes to UIAutomationSpy