fix problem where ranktags will repeatedly add the same tag to toptags list