fixes for minCount sampling