MRG: fix calculate_gather_stats
threshold=0
bug
#3052
Merged
calculate_gather_stats
threshold=0
bug
#3052