Cleaning up useless windows