Fix quorum calculation.