fixed window not closing