bugfix for jaccard index