Fix quorum calculation