fix a bug on array iterator in SemanticSimilarity, thanks to Chen Wen