correcting logic of fulltext link function