Fixed a bug - terms with similarity score of NaN were considered as alternatives