fixed window closing scrambling the Favorites and Settings dialogs