handle bad links

handle bad links