similar bug, when closing the window...