Fix calculate similarity.