make sure that when a window is shown it stops being a zombie