Removing bad links