similarity bug fix