remove bad links