Fixed bug with bad links