When exit grid to windows, use the correct window !