PERF: Limit the amount of badges fixed in the consistency check.