correct surrounded regions.