Fix so that it works even if num pledges is not there yet