fix crash when using for_window [...] reload
