fixed link flags "NOTFOUND" handling