Fixed the similarity bug