Fix similar-items fn