fix similarity bug