fixing the mess windows left behind post-crash