Fix bug in which receive repeats were calculated across protocols