Fxed little bug closing windows