Refresh properly the windows