fix for event loop not seeing widgets