fixed crash when unfullscreening a window that opened in fullscreen