similarity bug fixed