Fix in similarity matrix.