correct invalid link check