Windows and OS X respawn window fix