bug fix for links finding