fix cosine-distance
Merge remote-tracking branch 'origin/master'