bug in similarity value