Fixed bug in similarity analyzer.