fix text link extraction