fix close some windows once