Removing bad structure