Getting rid of bad links