fixing a bug and splicing the got result, to not show too many links