Maybe removing the window from the stack will work