Fix bug on refresh of all-events-done commitments that got into infinite loop