remove the invalid link